package com.ssims.service.sale;

import main.java.ssims.front.dao.gsm.IGoodsStockDAO;
import main.java.ssims.front.entity.GoodsStockInfoEntity;
import main.java.ssims.front.service.BaseService;
import main.java.ssims.front.service.gsm.IGoodsStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by coliza on 2014/6/2.
 */
@Transactional
@Service("goodsStockService")
public class GoodsStockService extends BaseService implements IGoodsStockService {

    @Autowired
    private IGoodsStockDAO goodsStockDAO;

    @Override
    public List<GoodsStockInfoEntity> queryByParams() {
        return goodsStockDAO.query();
    }

    @Override
    public List<GoodsStockInfoEntity> saveAndRefresh(GoodsStockInfoEntity entity) {
        return null;
    }

    @Override
    public GoodsStockInfoEntity updateGoodsStockInfo(GoodsStockInfoEntity entity) {
        return null;
    }

    @Override
    public boolean delete(Integer id) {
        return false;
    }
}
